package com.gaokuo.es.compose;

/**
 * 条件节点
 * @author gaokuo
 */
public class ComposeConditionNode extends AbComposeNode{

    final String property;
    final ConditionEnum condition;
    final String compareTo;

    public ComposeConditionNode(ComposeBindEnum bind, String property, ConditionEnum condition, String compareTo) {
        super(bind);
        this.property = property;
        this.condition = condition;
        this.compareTo = compareTo;
    }
    public ComposeConditionNode(String property, ConditionEnum condition, String compareTo) {
        super(null);
        this.property = property;
        this.condition = condition;
        this.compareTo = compareTo;
    }


}
